/*************************************************************************
	> File Name: fun.h
	> Author: ycst
	> Mail: a1277992967@163.com 
	> blog: http://www.ycst.club/suggest/
	> Created Time: 2022/7/4 9:24:39
 ************************************************************************/
#ifndef	_FUN_H_
#define _FUN_H_

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>
#include <windows.h>

#pragma warning(disable:4996)

#define	WIDTH 15
#define	HEIGHT 15


enum Success{
	Defeat,
	Success_Man1,
	Success_Man2,
	Success_Robot
};

enum Keep_or_Not{
	Keep,
	Finish,
};

enum Drop_Establish {
	Wrong,
	Right,
	Already_exists
};

enum Winner_ {
	Man1,
	Man2,
	Robot
};


void Welcome();
void Good_Bye();
void Init(int *arr);
void Print(int *arr);
void Input_Man1(int *arr, int x, int y);
void Input_Man2(int *arr, int x, int y);
void Input_Rebot_Hard(int *arr);
void Input_Rebot_Easy(int *arr);
int Three_times_Three(int *arr, int x, int y);
int Check_Man1(int *arr);
int Check_Man2(int *arr);
int Check_Robot(int *arr);
int Check_All(int *arr);
int Check_Input(int *arr, int x, int y);
void Clear();
void Refresh(int *arr);
void Twinkle();
void Time_Counter(int Minute_start, int Second_start);
int Scoring_Man1(int *arr);
int Scoring_Man2(int *arr);
int Scoring_Robot(int *arr);
void Shining_char(int *arr, int Winner);

#endif 


